﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="LostPant.ascx.cs" Inherits="CustomControls_LostPant" %>
<div class="form">
    <fieldset><legend>&nbsp;Detalles del Lote</legend>
       
        <div class="field-line">
            <asp:Label runat="server" CssClass="left" ID="lblDate" AssociatedControlID="txtDate" Text="<span class='required-mark'>*</span> Fecha"></asp:Label>
            <asp:TextBox runat="server" ID="txtDate" CssClass="short-field" MaxLength="10"></asp:TextBox> dd/mm/aaaa
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" Display="Dynamic" ForeColor="Red" SetFocusOnError="true"
                ControlToValidate="txtDate" ErrorMessage="Requerido"></asp:RequiredFieldValidator>
        </div>
        
         <div class="field-line">
            <asp:Label runat="server" CssClass="left" ID="lblModel" AssociatedControlID="drpSize" Text="<span class='required-mark'>*</span> Talla"></asp:Label>
            <asp:DropDownList runat="server" ID="drpSize" CssClass="field"></asp:DropDownList>
            <asp:RequiredFieldValidator ID="FNvalidator" runat="server" Display="Dynamic" ForeColor="Red" SetFocusOnError="true"
                ControlToValidate="drpSize" ErrorMessage="Requerido"></asp:RequiredFieldValidator>
        </div>

        <div class="field-line">
            <asp:Label runat="server" CssClass="left" ID="lblQuantity" AssociatedControlID="txtQuantity" Text="<span class='required-mark'>*</span> Cantidad de Pantalones"></asp:Label>
            <asp:TextBox runat="server" ID="txtQuantity" CssClass="short-field"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" Display="Dynamic" ForeColor="Red" SetFocusOnError="true"
            ControlToValidate="txtQuantity" ErrorMessage="Requerido"></asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ControlToValidate="txtQuantity" ForeColor="Red" Display="Dynamic" ID="regQuatity" ValidationExpression="[0-9]*" runat="server" ErrorMessage="Valor Inv&aacute;lido"></asp:RegularExpressionValidator>
            <asp:Label runat="server" ForeColor="Red" Visible="false" ID="lblQuantityError">Cantidad no debe ser mayor a la cantidad de pantalones del corte</asp:Label>
        </div>
       
        <div class="buttons-actions">
            <asp:Button runat="server" ID="btnSave" OnClick="btnSave_Click" Text="Guardar" />
            <asp:Button runat="server" ID="btnCancel" OnClick="btnCancel_Click" CausesValidation="false" Text="Cancelar" />
        </div>
    </fieldset>
   <script type="text/javascript">
       $(document).ready(function () {
           $("#<%= txtDate.ClientID%>").datepicker({
                dateFormat: 'dd/mm/yy'
            });
           
        })
        
    </script>
</div>    